<!-- <script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?7c9580682a23553f5a3ddf9c20ddbbed";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script> -->
<script>
	export default {
		onLaunch: function() {
			console.warn('当前组件仅支持 uni_modules 目录结构 ，请升级 HBuilderX 到 3.1.0 版本以上！')
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
			// #ifdef H5
			uni.getSystemInfo({
				success: (res) => {
					console.log(res, '------------------------系统信息')
					let locationEnabled = res.locationEnabled; //判断手机定位服务是否开启
					let locationAuthorized = res.locationAuthorized; //判断定位服务是否允许微信授权
					if (locationEnabled == false || locationAuthorized == false) {
						//手机定位服务（GPS）未授权
						uni.showModal({
							title: '温馨提示',
							content: '请打开定位服务功能',
							showCancel: false, // 不显示取消按钮
							success() {
								
							}
						})
					}
				}
			})
			// #endif
			
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import '@/uni_modules/uni-scss/index.scss';
	/* #ifndef APP-NVUE */
	@import '@/static/customicons.css';
	@import '@/static/iconfont.css';

	// 设置整个项目的背景色 
	page {
		background-color: #f5f5f5;
	}

	/* #endif */
	.example-info {
		font-size: 14px;
		color: #333;
		padding: 10px;
	}

	.uni-page-head {
		background-color: #3AE890 !important;
		color: #fff !important;

		.uni-btn-icon {
			color: #fff !important;
		}
	}

	.uni-tabbar-border {
		height: 0 !important;
	}

	::-webkit-scrollbar {
		display: none;
		width: 0 !important;
		height: 0 !important;
		-webkit-appearance: none;
		background: transparent;
	}
	/deep/.uni-tabbar-bottom{
		height: 150upx !important;
		bottom: 0 !important;
	}
	/deep/.uni-tabbar{
		height: 100upx !important;
	}
	/deep/.uni-tabbar__item{
		height: 100% !important;
	}
</style>
